﻿

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace BCEntity.TMS.Fence
{
    /// <summary>
    /// 电子围栏 数据模型
    /// </summary>
    [Table("fence")]
    public class FenceEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 电子围栏Id
        /// </summary>
        public long FenceId { get; set; }

        /// <summary>
        /// MongoId
        /// </summary>
        public string MongoId { set; get; }

        /// <summary>
        /// 围栏名称
        /// </summary>
        public string FenceName { get; set; }
        /// <summary>
        /// 围栏编号
        /// </summary>
        public int FenceNumber { get; set; }
        /// <summary>
        /// 控制Id
        /// </summary>
        public long CtrlCompanyId { get; set; }
        /// <summary>
        /// 控制公司名称
        /// </summary>
        public string CtrlCompanyName { get; set; }
        /// <summary>
        /// 劳务公司Id
        /// </summary>
        public long WorkCompanyId { get; set; }
        /// <summary>
        /// 劳务公司名称
        /// </summary>
        public string WorkCompanyName { get; set; }
        /// <summary>
        /// 省/州编码
        /// </summary>
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 省/州名称
        /// </summary>
        public string ProvinceName { get; set; }
        /// <summary>
        /// 市编码
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 市名称
        /// </summary>
        public string CityName { get; set; }
        /// <summary>
        /// 县编码
        /// </summary>
        public string CountyCode { get; set; }
        /// <summary>
        /// 县名称
        /// </summary>
        public string CountyName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ApproveTime { get; set; }
        /// <summary>
        /// 审核人Id
        /// </summary>
        public long? ApproverId { get; set; }
        /// <summary>
        /// 审核人名称
        /// </summary>
        public string Approver { get; set; }
        /// <summary>
        /// 修改人Id
        /// </summary>
        public long EditorId { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string Editor { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime EditTime { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 电子围栏报警类型
        /// </summary>
        public int FenceAlarmType { get; set; }
        /// <summary>
        /// 多边形范围
        /// </summary>
        public string CoordinateList { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

    }
}
